package com.mm.service;

import com.mm.exception.ServiceException;
import com.mm.model.Recruit;

import java.util.List;

/**
 * 招聘service
 *
 * @date 2018/7/19 16:42
 */
public interface RecruitService {

	/**
	 * 保存招聘信息
	 *
	 * @param jsonData String
	 */
	void saveRecruit(String jsonData) throws ServiceException;

	/**
	 * 更新招聘
	 *
	 * @param recruit Recruit
	 */
	void updateRecruit(Recruit recruit);

	/**
	 * 获取招聘
	 *
	 * @param recruitId 招聘ID
	 * @return Recruit
	 */
	Recruit getOneRecruitById(Long recruitId);

	/**
	 * 通过招聘ID删除招聘
	 *
	 * @param recruitId 招聘ID
	 */
	void deleteRecruitById(Long recruitId);

	/**
	 * 保存招聘图片关系
	 * @param recruitId  招聘第
	 * @param pictureIds 图片ID字符串(以","分割)
	 * @throws ServiceException
	 */
	void saveRecruitPicture(Long recruitId, String pictureIds) throws ServiceException;


	List<Recruit> listRecruit();
}
